from django.db import models

# 'object' for a conference
class Conference(models.Model):
	# name of the conference
	name = models.CharField(max_length=30)
	# company hosting the conference
	company = models.CharField(max_length=30)
	# location of it
	location = models.CharField(max_length=30)
	# true = public, false = private
	public = models.BooleanField()
	# when the conference is derp
	date = models.DateField()
	# starts at 0 and autoincrement
	attendees = models.DecimalField(decimal_places=0, max_digits=8, 
							null=True, blank=True)
	# how much money to go
	cost = models.DecimalField(decimal_places=2, max_digits=6, 
					 		null=True, blank=True)
	# itinerary
	itinerary = models.FileField(upload_to='/tmp/')

	# listing of the conference's admins
 	admins = models.ManyToManyField('Profile.UserProfile')
	
	# room of the conference
	room = models.DecimalField(decimal_places=2, max_digits=6,
								null=True, blank=True)
	# when we call on the conference model, return a formatted unicode
	# string instead of the stupid u' crap
#	def __unicode__(self):
#		return u'%s'%name
